home *** CD-ROM | disk | FTP | other *** search
- Path: canopus.cc.umanitoba.ca!news
- From: umsuder7@cc.umanitoba.ca (Keith Suderman)
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
- Subject: Re: Newbie question: default op=
- Date: Fri, 26 Jan 1996 16:53:15 GMT
- Organization: The University of Manitoba
- Message-ID: <4eb0rp$9ft@canopus.cc.umanitoba.ca>
- References: <30FEA0B4.4F66@ymi.com>
- Reply-To: umsuder7@cc.umanitoba.ca
- NNTP-Posting-Host: dyn2-304.cc.umanitoba.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- Jeffrey Keays <keays@ymi.com> wrote:
-
- >I am trying to use the &*%$ MFC collections in some way that will dispose of its contents on destruction. In
- >my 2-days and counting of ramming my head repeatedly against this brick wall over something that should be made
- >'easier' by them, I have this general C++ question.
-
- Hello Fellow MFC Newbie,
-
- In general C++ the default bitwise = operator would normally do the
- trick for you. The problem arises with CObject derived classes (or so
- my "Teach Yourself MFC" book explains). Since the = operator is so
- vital for the proper functioning of your class, relying on a default
- operator could be to dangerous so MFC forces the programmer to define
- thier own if one is needed. Of course, this is only truly helpful if
- the programmer knows about it beforehand ;-)
-
- Keith
-
-
- Keith Suderman |
- Keith_Suderman@umanitoba.ca | Computer science is two thirds hard
- Winnipeg, Manitoba, Canada | work and 50% mathematics...
- Computer Science IV |
-
-